package com.speechb.common.logger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 日志工厂类
 * @author : llj
 * @version :2.1.0
 * @date : 2019/7/26 22:37
 */
public class AppLoggerFactory {
    /**
     * 获取业务logger对象
     * @return
     */
    public static Logger getRunLogger() {
        return LoggerFactory.getLogger("runLog");
    }
    public static Logger getRootLogger(Class clazz) {
        return LoggerFactory.getLogger(clazz);
    }
    public static boolean isDebugEnabled() {
        return getRunLogger().isDebugEnabled();
    }
}
